package db;

/**
 * AbstractAuthority entity provides the base persistence definition of the
 * Authority entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractAuthority implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Integer module1;
	private Integer module2;
	private User user;

	// Constructors

	/** default constructor */
	public AbstractAuthority() {
	}

	/** full constructor */
	public AbstractAuthority(Integer userId, Integer module1, Integer module2) {
		this.userId = userId;
		this.module1 = module1;
		this.module2 = module2;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getModule1() {
		return this.module1;
	}

	public void setModule1(Integer module1) {
		this.module1 = module1;
	}

	public Integer getModule2() {
		return this.module2;
	}

	public void setModule2(Integer module2) {
		this.module2 = module2;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}